package com.example.demo;

import com.example.demo.api.IHelloService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ApplicationRunner {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:dubbo-client.xml");
        IHelloService helloService = (IHelloService) context.getBean("helloService");
        System.out.println(helloService.sayHello("banana"));
    }
}

